from typing import Any
import uvicorn
from fastapi import FastAPI, Form
from pydantic import BaseModel
from fastapi.middleware.httpsredirect import HTTPSRedirectMiddleware
from fastapi.responses import JSONResponse
from typing import Dict

app = FastAPI()

class Item(BaseModel):
    name: str
    description: str | None = None
    price: float
    tax: float | None = None


@app.post("/items", response_model=Item)
async def create_item(item: Item) -> Any:
    return {"name":"jack","price":33.3}






if __name__ == "__main__":
    uvicorn.run(app, host='127.0.0.1', port=7866)